package com.m4f.business.model.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Min;
import javax.validation.constraints.Max;

public class ContactMail {
	
	@NotNull(message="Mail blank")
	@Pattern(regexp = "^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$", message="Bad mail")
	private String sender;
	
	@NotNull(message="Subject blank")
	//@Min(value=1, message="Enter a subject")
	private String subject;
	
	@NotNull(message="Body blank")
	//@Min(value=1, message="Enter a message")
	//@Max(value=255, message="Enter a message smaller than 255 character")
	private String body;
	
	public String getSender() {
		return sender;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
}